﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_page.Master" AutoEventWireup="true" CodeBehind="CodeDefinition-List.aspx.cs" Inherits="SmartSpace.WebApp.Modules.Core.Pages.CodeDefinition_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
    编码列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBody" runat="server">
    <table style="width: 100%;">
        <tr>
            <td style="vertical-align: top; width: 300px;">
                <div class="ss-box">
                    <h1>类别</h1>
                    <div class="ss-tbar">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Modules/Core/Pages/CodeCategory-Create.aspx">创建</asp:HyperLink>
                    </div>
                    <div>
                        <table class="ss-list" width="100%" cellspacing="0" cellpadding="0">
                            <tr>
                                <th>类别
                                </th>
                                <th>编号
                                </th>
                            </tr>
                            <asp:Repeater ID="_ctlListCategory" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <a href="CodeDefinition-List.aspx?category=<%# Eval("Id") %>">
                                                <%# Eval("Code") %>
                                            </a>
                                        </td>
                                        <td>
                                            <%# Eval("Caption") %>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                </div>
            </td>
            <td style="vertical-align: top;">
                <div class="ss-box">
                    <h1>编码</h1>
                    <div class="ss-tbar">
                        <asp:HyperLink ID="_ctlLinkCreateCode" runat="server">创建</asp:HyperLink>
                    </div>
                    <div>
                        <table class="ss-list" cellspacing="0" cellpadding="0" style="width: 100%;">
                            <tr>
                                <th style="width: 100px;">编号
                                </th>
                                <th style="width: 120px;">名称
                                </th>
                                <th>&nbsp;
                                </th>
                            </tr>
                            <asp:Repeater ID="_ctlListCode" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%# Eval("Code") %>
                                        </td>
                                        <td>
                                            <%# Eval("Caption") %>
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
